import {createStore} from 'vuex'

export default createStore({
  state: {
    userInfo: {
      username: "",
      routeAll: [""],
      isLogin: false,
    },
    token: '',
    weekyId: ''
  },
  mutations: {
    setUserInfo(status, userInfo) {
      this.state.userInfo = userInfo
    },
    setTokens(status, tokens) {
      this.state.token = tokens
    },
    setWeekyId(status, weekyId) {
      this.state.weekyId = weekyId
    }
  },
  actions: {},
  getters: {}
})
